<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:83:"E:\workplace\project\Sunwm\web/../application/admin\view\seller\money_off_edit.html";i:1511570766;s:75:"E:\workplace\project\Sunwm\web/../application/admin\view\public\header.html";i:1503189484;s:75:"E:\workplace\project\Sunwm\web/../application/admin\view\public\footer.html";i:1512624954;}*/ ?>
﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title><?php echo config('sitename'); ?>-<?php echo lang('label')['Login_title']; ?></title>
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/public/css/pintuer.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/admin/css/admin.css" />
		<script type="text/javascript" src="__ROOT__/static/public/js/jquery.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/js/pintuer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/admin/js/admin.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/layer/layer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laydate/laydate.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laytpl/laytpl.js"></script>
	</head>

	<body>
	<style>
		html { overflow-x:hidden; }
	</style>
<form method="post" class="form-x" action="money_off_edit?seller_id=<?php echo input('get.seller_id'); ?>&name=<?php echo input('get.name'); if($data['id']): ?>&id=<?php echo $data['id']; endif; ?>">
    <input type="hidden" name="seller_id" value="<?php echo input('get.seller_id'); ?>">
    <div class="panel admin-panel">
        <div class="panel-head">
            <strong><?php echo lang('currency')['edit']; ?></strong>
            <a style="float: right;margin-right: 15px" href="__URL__/money_off?page=<?php echo input('get.page'); ?>&id=<?php echo input('get.seller_id'); ?>&name=<?php echo input('get.name'); ?>"><< 返回</a>
        </div>
        <br/>
        <div class="form-group">
            <div class="label">
                <label>满</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="full" name="full" value="<?php echo $data['full']; ?>" size="18" placeholder="满"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>减</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="minus" name="minus" value="<?php echo $data['minus']; ?>" size="18" placeholder="满"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>平台承担</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="system_minus" name="system_minus" value="<?php echo $data['system_minus']; ?>" size="18" placeholder="平台承担"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>商家承担</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="seller_minus" name="seller_minus" value="<?php echo $data['seller_minus']; ?>" size="18" placeholder="商家承担"/>
            </div>
        </div>
        <div class="form-button">
            <button class="button bg-main" type="submit"><?php echo lang('form')['submit']; ?></button>
        </div>
        <br/>
    </div>
</form>
<script>
    $("[name='status']").click(function () {
        var status = $("[name='status']:checked").val();
        if (status == '4') {
            $("#refuse").removeClass('hidden');
        } else {
            $("#refuse").addClass('hidden');
        }
    });
    var um = UM.getEditor('myEditor');
</script>
<p class="text-center text-gray" style="margin-top:10px;"><a class="text-gray" target="_blank" href="http://www.wm0530.com">完美外卖系统 Power by 网络工厂</a></p>
</body>
<script>
$('.upload').on('click',function (){
		var id = $(this).attr('data-id');
		 upload(id);
	}
);
function upload(id){
	layer.open({
		type:2,
		title:false,
		area: ['70%', '90%'],
		offset: '5%',
		content: "<?php echo url('/admin/material'); ?>?id="+id
	});
}
</script>
</html>